#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20230706.sql ./mysql/db
cp ../sql/ry_config_20220929.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../wxb-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy wxb-gateway "
cp ../wxb-gateway/target/wxb-gateway.jar ./wxb/gateway/jar

echo "begin copy wxb-auth "
cp ../wxb-auth/target/wxb-auth.jar ./wxb/auth/jar

echo "begin copy wxb-visual "
cp ../wxb-visual/wxb-monitor/target/wxb-visual-monitor.jar  ./wxb/visual/monitor/jar

echo "begin copy wxb-modules-system "
cp ../wxb-modules/wxb-system/target/wxb-modules-system.jar ./wxb/modules/system/jar

echo "begin copy wxb-modules-file "
cp ../wxb-modules/wxb-file/target/wxb-modules-file.jar ./wxb/modules/file/jar

echo "begin copy wxb-modules-job "
cp ../wxb-modules/wxb-job/target/wxb-modules-job.jar ./wxb/modules/job/jar

echo "begin copy wxb-modules-gen "
cp ../wxb-modules/wxb-gen/target/wxb-modules-gen.jar ./wxb/modules/gen/jar

